﻿using System;
using System.Runtime.Serialization;

namespace API.Models
{
    [DataContract]
    [Serializable]
    public class Food : IModel
    {

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Unit { get; set; }

        [DataMember]
        public decimal Price { get; set; }

        [DataMember]
        public FoodType FoodType { get; set; }

        [DataMember]
        public DateTime Created { get; set; }

    }
}